package com.quanyan.authority.service;

import com.quanyan.authority.model.db.TbAdminUser;
import com.quanyan.authority.model.db.TbAdminUserRole;
import com.quanyan.authority.model.db.TbRole;
import com.quanyan.authority.model.request.ReqLogin;
import com.quanyan.authority.model.request.ReqAdminUser;
import com.quanyan.authority.service.base.IService;

import java.util.List;

/**
 * Created by Administrator on 2016/8/3.
 */
public interface AdminUserService extends IService<ReqAdminUser, TbAdminUser> {

    public TbAdminUser login(ReqLogin reqLogin);

    /**
     * 用户增加角色
     * @param lst
     */
    public void addUserRole(List<TbAdminUserRole> lst);

    /**
     * 用户删除角色
     * @param lst
     */
    public void delUserRole(List<TbAdminUserRole> lst);


    /**
     * 根据uid获取角色
     * @param uid
     * @return
     */
    public List<TbRole> getUserRole(Integer uid);


}
